package com.dushibao.annotation.test;

import com.dushibao.annotation.FieldName;
import com.dushibao.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "dushibao_order_form")
public class OrderForm {

    @FieldName(value = "id")
    private Long id;

    @FieldName(value = "addTime")
    private LocalDateTime addTime;

    @FieldName(value = "sn")
    private String sn;

    @FieldName("total_price")
    private BigDecimal totalPrice;

    public OrderForm(){}

    public OrderForm(Long id){
        this.id = id;
    }

}
